<%--
  Created by IntelliJ IDEA.
  User: LoveR
  Date: 2021/7/23
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的视频</title>
</head>
<body>
<table width="100%" border="2" cellpadding="1" cellspacing="0">
    <thead>
    <tr bgcolor="#ffe4c4">
        <th>序号</th>
        <th>视频标题</th>
        <th>视频链接</th>
        <th>视频添加时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <c:choose>
        <c:when test="${empty requestScope.videosList}">
            <tr>
                <td colspan="5">未查询到数据</td>
            </tr>
        </c:when>
        <c:otherwise>
            <c:forEach items="${requestScope.videosList}" var="videos" varStatus="c">
                <tr style="background: ${0!=c.count%2?'skyblue':'white'}">
                    <td>${c.count}</td>
                    <td>${videos.title}</td>
                    <td>${videos.url}</td>
                    <td>${videos.addTime}</td>
                    <td><a href="#">删除</a></td>
                </tr>
            </c:forEach>
        </c:otherwise>
    </c:choose>
    <tbody></tbody>
</table>
</body>
</html>
